package com.flyduck.modules.schedule.mapper;

import com.flyduck.modules.schedule.domain.SysScheduleJob;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysScheduleJobMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysScheduleJob record);

    int insertSelective(SysScheduleJob record);

    SysScheduleJob selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysScheduleJob record);

    int updateByPrimaryKey(SysScheduleJob record);

    /**
     * 根据关键字分页查询
     * @param keyword
     * @return
     */
    Page<SysScheduleJob> findPage(@Param("keyword") String keyword);

    /**
     * 修改状态
     * @param enabled
     * @param id
     */
    void updateEnabledById(@Param("enabled") boolean enabled, @Param("id") Long id);
}